<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property string $name 链接名称
 * @property int $visit_type 二维码切换方式：2=随机跳转 3=轮询访问 4=顺序切换
 * @property int $qrcode_vc_type 二维码访问上线类型 0=累计限制 1=每日限制
 * @property int $bind_device 用户设备绑定：0=关闭 1=开启
 * @property int $is_greeting 是否发消息（0 = 否，1 = 是）
 * @property array $greeting_head 欢迎语开头
 * @property array $greeting_body 欢迎语主体
 * @property array $greeting_end 欢迎语结尾
 * @property int $hits 今日点击数
 * @property int $total_hits 累计点击数
 * @property string $link 链接
 * @property int $is_advanced 是否开启高级设置（0 = 否，1 = 是）
 * @property array $page_cfg 落地页设置
 * @property string $created_at 创建时间
 */
class ChCustomerServiceLink extends MineModel
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_customer_service_link';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'name', 'visit_type', 'qrcode_vc_type', 'bind_device', 'is_greeting', 'greeting_head', 'greeting_body', 'greeting_end', 'hits', 'total_hits', 'link', 'is_advanced', 'page_cfg', 'created_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'visit_type' => 'integer', 'qrcode_vc_type' => 'integer', 'bind_device' => 'integer', 'is_greeting' => 'integer', 'greeting_head' => 'array', 'greeting_body' => 'array', 'greeting_end' => 'array', 'hits' => 'integer', 'total_hits' => 'integer', 'is_advanced' => 'integer', 'page_cfg' => 'array'];
}
